package some.zipcode.dao;

import java.util.List;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Component;

import some.zipcode.domain.ZipcodeCommand;

@Component
public class ZipcodeDaoImpl extends SqlSessionDaoSupport implements ZipcodeDao{

	@Override
	public List<ZipcodeCommand> getAddrDong(String dong) {
		List<ZipcodeCommand> list = getSqlSession().selectList("someZipcodeDao.getAddrDong",dong);
		return list;
	}

	@Override
	public int getAddrDongCount(String dong) {
		Integer count = getSqlSession().selectOne("someZipcodeDao.getAddrDongCount",dong);
		return count;
	}

}
